﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ChiTietTin.aspx.cs" Inherits="WebBanThuoc.ChiTietTin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="main" runat="server">
<%  WebBanThuoc.DTO.TinTuc tt = null; 
 if (Session["tt"] !=null) 
 {  tt = Session["tt"]  as WebBanThuoc.DTO.TinTuc;%>
     <script type="text/javascript">
         document.title = document.title + " - " + "<%= tt.TenTinTuc %>";
    </script>
<div class="tran_nav">
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="width:30px; display:inline;">
          <a href="TrangChu.aspx" itemprop="url" >
            <span itemprop="title">Trang chủ</span>
          </a>  <font>&raquo;</font>
        </div>
        <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="width:30px; display:inline;"> 
         <a href="ShowTinTuc.aspx?MaDanhMuc=<%=tt.MaDanhMuc %> " itemprop="url" >
            <span itemprop="title">Sức khỏe & đời sống</span>
          </a>  <font>&raquo;</font>
        </div>  
          <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="width:30px;  display:inline;">
                 <span itemprop="title"><%=tt.TenTinTuc %></span>
            </div>
</div>

<div id="chitiettin">

<div class="product_title" style="margin-bottom:0px"><h1><%=tt.TenTinTuc %></h1></div>

    <div id="chitiettin_content">
       <p id="tin_tomtat">
        <!-- <img src="" width="140" height="125" align="left" />-->
              <%=tt.NoiDungSoLuoc %>
        </p>
        <div id="tin_noidung"><%=tt.NoiDung %>
            <div class="ngay" style="margin-top:15px; margin-bottom:15px">Ngày đăng:  <span ><%=tt.NgayDang.ToString("dd/MM/yyyy") %></span>  </div> 
             <img src="images/separator.png" width="270px" style="margin-left:160px" />

              <div class="share" style="width:564px;  height:34px; padding-top: 6px; float:left; margin-top:20px; padding-bottom:7px;">
                <ul style="list-style: none">
                    <li style="float:left; display:list-item; margin-right: 20px; margin-left:6px; width:130px ">Chia sẻ cho bạn bè:</li>                                
                    <li style="float:left; display:list-item; margin-right: 10px; width:120px;">                
                       <!-- Place this tag where you want the share button to render. -->
                        <style type="text/css">
                            #___plus_0
                            {
                                float:right;    
                            }
                        </style>
                        <div class="g-plus" data-action="share" data-annotation="bubble" data-href="<%=Request.RawUrl%>"></div>
            
                        <!-- Place this tag after the last share tag. -->
                        <script type="text/javascript">
                            window.___gcfg = { lang: 'vi' };
                            (function () {
                                var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                                po.src = 'https://apis.google.com/js/plusone.js';
                                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                            })();
                        </script>                    
                    </li>
                    <li style="float:left; display:list-item; margin-right: 20px; padding-top: 1px; width:120px; ">                
                           <%--<script>  
                                                  (function (d, s, id) {
                                var js, fjs = d.getElementsByTagName(s)[0];
                                if (d.getElementById(id)) return;
                                js = d.createElement(s); js.id = id;
                                js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1";
                                fjs.parentNode.insertBefore(js, fjs);
                            } (document, 'script', 'facebook-jssdk'));</script>
                        <fb:share-button type="button" href="<%=Request.RawUrl%>" style="float:right;">
                        </fb:share-button>--%>
                        <a target="_blank" href="http://www.facebook.com/sharer.php?u=<%=Request.Url.AbsoluteUri%>" title="Chia sẻ trên Facebook">
                            <img alt="facebook_share" src="img/facebook_btn.gif" />
                        </a>
                    </li>
                    <li style="float:left; display:list-item; margin-right: 5px; width:120px;">
                
                        <a href="https://twitter.com/share" class="twitter-share-button" data-url="<%=Request.Url%>" data-text="Link Hay">Tweet</a>
                        <script>
                            !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");
                        </script>
                
                    </li>
                </ul>
            </div>

        </div>  <!--tin_noidung-->
              
       
       
     
    
    </div><!--chitiettin_content-->    

 <div id="chitiettin_others">
   <div style="margin:5px; font-size: 14pt; font-weight:bold">CÁC TIN KHÁC</div>
 <%  if(Session["listTTTop"]!=null)
    {
      System.Collections.Generic.List<WebBanThuoc.DTO.TinTuc> listTTTop = Session["listTTTop"]
                     as System.Collections.Generic.List<WebBanThuoc.DTO.TinTuc>;%>
    
      <div id="tincungloai">
       
        <% for (int i = 0; i < listTTTop.Count; i++)
          {
           if(listTTTop[i].IDTinTuc != tt.IDTinTuc){     %>
                 <a href="ChiTietTin.aspx?IDTinTuc=<%=listTTTop[i].IDTinTuc %>&MaDanhMuc=<%=listTTTop[i].MaDanhMuc %> "> <span style="color:Red">&nbsp;▪&nbsp;</span> <%=listTTTop[i].TenTinTuc %>  </a>
            <%} %>
       <%} %> 
    </div>
  <%} %> 
   </div>   <!--chitiettin_others-->  
</div>
 <%} %> 

   <!-- beginging of sharepage--> 
<% Session.Remove("tt");
   Session.Remove("listTTTop");
    %>
<style>
 #chitiettin{float:left;width:585px; font-size:13px; line-height:25px; margin-bottom: 10px;}
#chitiettin_content {float:left; width:580px; margin-left:3px; padding:8px;background-color:#FFF; border-bottom:2px solid #D2D1D1}
#tin_noidung{ text-align:justify; float:left; width:564px; padding:5px; overflow:hidden;}
#chitiettin_others{ float:left; width:580px; margin-left:3px; padding:8px;background-color:#FFF;}
#tin_tomtat{float:left; color:#55B7E6}
.ngay{float:left; width:564px ;color:#FF1F78; font-style:italic; text-align:right;font-size:12px;background-color:#FFF;}
#tincungloai
{ 
    margin-top:10px;
    padding-left: 5px;
}
#tincungloai a{ 
	color:#A6AC11; text-decoration:none; margin-left:10px; display:block; 
	font-size: 11pt;    	
}
	#tincungloai a:hover{ color:Black;}
</style>

</asp:Content>
